package org.lq.his.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.lq.his.pojo.Role;
import org.lq.his.pojo.User;

public interface UserService {

	public User getByUserCode(@Param("userCode") String userCode);
	
	public List<User> getListByCondition(@Param("start") int start,@Param("limit") int limit,@Param("condition") User condition,@Param("column") String column,@Param("orderBy") String orderBy);
	
	public Integer getCountByCondition(@Param("condition") User condition);
	
	/**
	 * 添加用户
	 * @param user
	 * @param roleIds
	 */
	public void addUser(User user,Integer[] roleIds);
	
	public List<User> getAll();
	
	public void bathDeleteUser(Integer[] ids);
	
	/**
	 * 根据用户id查询
	 * @param id
	 * @return
	 */
	public User getUserById(Integer id);
	
	public void edtiUser(User user,Integer[] roleIds);
	
	/**
	 * 根据条件查询值班医生
	 * @return
	 */
	public List<User> getShiftDoctorByCondition(Integer registrationChargeTypeId,Integer sectionId);
	
}
